import type { GoodsResult } from "@/types/goods";
import { http } from "@/untils/request";

/**
 * 商品详情
 * @param id 
 * @returns 
 */
export const getGoodsDetailAPI = (id: string) => {
    return http<GoodsResult>({
        url: '/goods',
        method: 'GET',
        data: { id }
    })
}